Class symantec.itools.db.beans.brl.validation.ValidationHelper
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.brl.validation.ValidationHelper

Object
   |
   +----DerivationHelper
           |
           +----symantec.itools.db.beans.brl.validation.ValidationHelper

public class ValidationHelper
extends DerivationHelper
Helper class for validation formulas

Version:
1.0 08/04/98
Author:
Puru Balakrishnan

Variable Index

 o DATEEXCPTITLE
 o EXCPTITLE

Constructor Index

 o symantec.itools.db.beans.brl.validation.ValidationHelper()
Default constructor

Method Index

 o applyOperator(long, String, long)
 o applyOperator(double, String, double)
 o getObjectValue(CompColInputMember)
Method to return the Object value to be used in the validation formula
 o getStringValue(CompColInputMember)
Method to return the object value as a String
 o getValidNotPerformedMsg()
 o validateDate(Object, String, Object)
Method to validate date
 o validateDate(Object, String, String)
Method to validate date
 o validateNumber(Object, String, Object)
Method to validate numbers
 o validateString(String, String, String)
Method to validate string

Variables

 o DATEEXCPTITLE
protected static java.lang.String DATEEXCPTITLE
 o EXCPTITLE
protected static java.lang.String EXCPTITLE

Constructors

 o ValidationHelper
public ValidationHelper()
Default constructor

Methods

 o applyOperator
protected boolean applyOperator(long lhs,
                                String oper,
                                long rhs)
 o applyOperator
protected boolean applyOperator(double lhs,
                                String oper,
                                double rhs)
 o getObjectValue
public java.lang.Object getObjectValue(CompColInputMember member)
Method to return the Object value to be used in the validation formula

Parameters:
member - the CompColInputMember could be source or target
Returns:
the value to be used in the validation formula
 o getStringValue
public java.lang.String getStringValue(CompColInputMember member)
Method to return the object value as a String

Parameters:
member - the specified CompColInputMember
Returns:
the object value of the specified member
 o getValidNotPerformedMsg
protected java.lang.String getValidNotPerformedMsg()
 o validateDate
public boolean validateDate(Object source,
                            String oper,
                            Object target)
Method to validate date

Parameters:
source - the Object value to be validated
oper - the date operator
target - the Object value to be validated against
Returns:
true if valid
 o validateDate
public boolean validateDate(Object source,
                            String oper,
                            String target)
Method to validate date

Parameters:
source - the Object value to be validated
oper - the date operator
target - the String value to be validated against
Returns:
true if valid
 o validateNumber
public boolean validateNumber(Object source,
                              String oper,
                              Object target)
Method to validate numbers

Parameters:
source - the Object value to be validated
oper - the String operator
target - the Object value to be validated against
Returns:
true if valid
 o validateString
public boolean validateString(String sourceVal,
                              String oper,
                              String targetVal)
Method to validate string

Parameters:
sourceVal - the String value to be validated
oper - the String operator
targetVal - the String value to be validated against
Returns:
true if valid

All Packages  Class Hierarchy  This Package  Previous  Next  Index